/* ----------------------- dom/documentfragment.js -------------------------- */
VED.dom.documentFragment = new Class({
   initialize: function( nodeOrDoc ) {
      nodeOrDoc = nodeOrDoc || VED.document;

      if ( nodeOrDoc.type == VED.NODE_DOCUMENT )
         this.$ = nodeOrDoc.$.createDocumentFragment();
      else
         this.$ = nodeOrDoc;
   },

   type: VED.NODE_DOCUMENT_FRAGMENT,

   insertAfterNode: function( node ) {
      node = node.$;
      node.parentNode.insertBefore( this.$, node.nextSibling );
   }
});

VED.tools.extend( VED.dom.documentFragment.prototype, VED.dom.element.prototype, true, { 'append':1,'appendBogus':1,'getFirst':1,'getLast':1,'getParent':1,'getNext':1,'getPrevious':1,'appendTo':1,'moveChildren':1,'insertBefore':1,'insertAfterNode':1,'replace':1,'trim':1,'type':1,'ltrim':1,'rtrim':1,'getDocument':1,'getChildCount':1,'getChild':1,'getChildren':1 } );





